<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('用户修改')"/>
</head>
<body>
<form class="layui-form" action=""  th:object="${TsysUser}">
    <div class="mainBox">
        <div class="main-container">
            <div class="main-container">
                <div class="layui-form-item layui-hide">
                    <label class="layui-form-label">编号</label>
                    <div class="layui-input-block">
                        <input type="text" th:value="*{id}" name="id" lay-verify="title"
                               autocomplete="off" placeholder="请输入标题" class="layui-input">
                    </div>
                </div>

                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">姓名</label>
                    <div class="layui-input-block">
                        <input readonly='readonly' th:value="*{nickname}" type="text" name="nickname" lay-verify="nickname" autocomplete="off" placeholder="请输入昵称" class="layui-input">
                    </div>
                </div>

            <div class="layui-form-item">
                <label class="layui-form-label">性别</label>
                <div class="layui-input-block">
                    <input  disabled th:value="*{userSex}" th:checked="*{userSex} eq '0'" type="radio" name="manSex" value="0" title="男">
                    <input  disabled th:value="*{userSex}" th:checked="*{userSex} eq '1'" type="radio" name="manSex" value="1" title="女">                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">民族</label>
                <div class="layui-input-block">
                    <input readonly='readonly' th:value="*{userNation}" type="text" name="userNation" lay-verify="userNation" autocomplete="off" placeholder="请输入民族" class="layui-input">
                </div>
            </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">出生年月</label>
                    <div class="layui-input-block">
                        <input readonly='readonly' th:value="*{userBirth}" type="text" name="userBirth" lay-verify="userNation" autocomplete="off"  class="layui-input">
                    </div>
                </div>
<!--            <div class="layui-form-item layui-hide">-->
<!--                <label class="layui-form-label">部门</label>-->
<!--                <div class="layui-input-block" disabled="disabled">-->
<!--                    <ul id="selectParent" name="deptId" class="dtree" data-id="0"></ul>-->
<!--                </div>-->
<!--            </div>-->
            <div class="layui-form-item">
                <label class="layui-form-label">单位名称</label>
                <div class="layui-input-block">
                    <input  readonly th:value="*{deptName}" type="text" name="deptName" lay-verify="deptName"  class="layui-input">
                </div>
            </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">职务</label>
                    <div class="layui-input-block">
                        <input readonly='readonly' th:value="*{userOffice}" type="text" name="userOffice" lay-verify="userOffice" autocomplete="off" placeholder="请输入职务" class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">专业职称</label>
                    <div class="layui-input-block">
                        <input readonly='readonly' th:value="*{userTitle}" type="text" name="userTitle" lay-verify="userTitle" autocomplete="off" placeholder="请输入职称" class="layui-input">
                    </div>
                </div>
            <div class="layui-form-item">
                <label class="layui-form-label">学历</label>
                <div class="layui-input-block">
                    <select  id="userEducation" name="userEducation">
                        <option selected >请选择学历</option>
                        <option disabled th:field="*{userEducation}" th:checked="*{userEducation} eq 'g'" value="g">博士研究生</option>
                        <option disabled th:field="*{userEducation}" th:checked="*{userEducation} eq 'f'" value="f">硕士研究生</option>
                        <option disabled th:field="*{userEducation}" th:checked="*{userEducation} eq 'e'" value="e">本科</option>
                        <option disabled th:field="*{userEducation}" th:checked="*{userEducation} eq 'd'" value="d">大专</option>
                        <option disabled th:field="*{userEducation}" th:checked="*{userEducation} eq 'c'" value="c">高中</option>
                        <option disabled th:field="*{userEducation}" th:checked="*{userEducation} eq 'b'" value="b">初中</option>
                        <option disabled th:field="*{userEducation}" th:checked="*{userEducation} eq 'a'" value="a">小学</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">学位</label>
                <div class="layui-input-block">
                    <select  id="userAcademicDegree" name="userAcademicDegree">
                        <option selected >请选择学位</option>
                        <option disabled th:field="*{userAcademicDegree}" th:checked="*{userAcademicDegree} eq 'c'" value="c">博士</option>
                        <option disabled th:field="*{userAcademicDegree}" th:checked="*{userAcademicDegree} eq 'b'" value="b">硕士</option>
                        <option disabled th:field="*{userAcademicDegree}" th:checked="*{userAcademicDegree} eq 'a'" value="a">学士</option>
                    </select>
                </div>
            </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">研究专长</label>
                    <div class="layui-input-block">
                        <input readonly='readonly' th:value="*{userExpertise}" type="text" name="userExpertise" lay-verify="userExpertise" autocomplete="off" placeholder="请输入研究专长" class="layui-input">
                    </div>
                </div>
            <div class="layui-form-item">
                <label class="layui-form-label">通讯地址</label>
                <div class="layui-input-block">
                    <input readonly='readonly' th:value="*{userAddress}" type="text" name="userAddress" lay-verify="userAddress" autocomplete="off" placeholder="请输入通讯地址" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">邮政编码</label>
                <div class="layui-input-block">
                    <input readonly='readonly' th:value="*{userZip}" type="text" name="userZip" lay-verify="userZip" autocomplete="off" placeholder="请输入邮政编码" class="layui-input">
                </div>
            </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">电话</label>
                    <div class="layui-input-block">
                        <input readonly='readonly' th:value="*{userPhone}" type="text" name="userPhone" lay-verify="userPhone" autocomplete="off" placeholder="请输入电话" class="layui-input">
                    </div>
                </div>

<!--            <div class="layui-form-item">-->
<!--                <label class="layui-form-label">银行卡号</label>-->
<!--                <div class="layui-input-block">-->
<!--                    <input readonly='readonly' th:value="*{userBankCard}" type="text" name="userBankCard" lay-verify="userBankCard" autocomplete="off" placeholder="请输入银行卡号" class="layui-input">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="layui-form-item">-->
<!--                <label class="layui-form-label">开户行</label>-->
<!--                <div class="layui-input-block">-->
<!--                    <input readonly='readonly' th:value="*{userBankAddress}" type="text" name="userBankAddress" lay-verify="userBankAddress " autocomplete="off" placeholder="请输入开户行" class="layui-input">-->
<!--                </div>-->
<!--            </div>-->

<!--                <div class="layui-form-item">-->
<!--                    <label class="layui-form-label">角色</label>-->
<!--                    <div class="layui-input-block">-->
<!--                        <input readonly='readonly' th:each="sysRole:${roleVos}" th:value="${sysRole.id}" th:title="${sysRole.name}" th:checked="${sysRole.ischeck}"-->
<!--                               type="checkbox"  lay-skin="primary" disabled="disabled">-->


<!--                    </div>-->
<!--                </div>-->

            </div>
        </div>
    </div>

</form>
<th:block th:include="include :: footer"/>
<script>
    layui.use(['form', 'jquery','laydate'], function () {
        let form = layui.form;
        let $ = layui.jquery;
        let dtree = layui.dtree;
        let MODULE_PATH = rootPath+"/UserController";
        let DEPAR_PATH=rootPath+"/SysDepartmentController";
        let username='[[${TsysUser.username}]]';
        var laydate = layui.laydate;


        //绑定事件选择器
        laydate.render({
            elem: '#userBirth' //指定元素,
            ,type: 'date'
            ,format: 'yyyy-MM-dd HH:mm:ss'
        });


    })
</script>
<script>
</script>
</body>
</html>